<?php
session_start();

if(isset($_SESSION['userid'])&&$_SESSION['level']!=2)
{
	
	header ("location: login.php");
	exit();
}
?>
<?php
include("includes/top_user.php");
?>
<div id="wrapper">
	<div id="content">
<?php
include("../lib/connect_db.php");
$id = $_GET['userid'];
$sql = "select * from tb_user where user_id='".$id."'";

$query = $conn->query($sql);
$row = $query->fetch_array(MYSQLI_ASSOC);

?>
<div id="box">
<h3>Thông tin thành viên</h3>
Level : <?php if($row['user_level'] == 1) { echo "Member"; } else {echo "Administration" ;} ?><br />
UserName : <?php echo $row['user_login_name']."<br>"; ?>
Họ Tên : <?php echo $row['user_name']."<br>"; ?>
Email : <?php echo $row['user_email']."<br>"; ?>

</div>

</div><!--content-->
	<?php
	include("includes/sidebar.php");
	?>
</div><!--end wrapper-->

<?php
include("includes/footer.php");
?>